package pers.cz.commons.operator;

import pers.cz.mapper.PostgirlDtlMapper;
import pers.cz.model.PostgirlDtl;
import pers.cz.spring.SpringContextUtil;

/**
 * 公共操作员信息
 * @program: PostGirl-panent
 * @description: CommontOperator
 * @author: Cheng Zhi
 * @create: 2021-07-03 16:14
 **/
public class CommontOperator {

    /**
     * 根据用户id获取用户详细信息
     * @param userId
     * @return
     */
    public static PostgirlDtl getOperator(Integer userId) {

        PostgirlDtlMapper bean = SpringContextUtil.getBean(PostgirlDtlMapper.class);
        PostgirlDtl postgirlDtl = bean.selectByPrimaryKey(userId);
        return postgirlDtl;
    }
}
